<?php /*Consider the word "ELEPHANT". Please display the word in reverse order.
(Your program must contain one FOR loop.)*/ ?>
<?php
$word="ELEPHANT";
$reverse = str_split($word);
$length=sizeof($reverse);

for($i=$length;$i>=0;$i--)
{
echo $reverse[$i];
}
?>